Skip to content

Fix user.ini handling when the script directory prefixes doc_root - #249

Closed
iliaal wants to merge 1 commit into
PHP-8.4from
fix/fpm-user-ini-prefix-scan
Closed

Fix user.ini handling when the script directory prefixes doc_root#249
iliaal wants to merge 1 commit into
PHP-8.4from
fix/fpm-user-ini-prefix-scan

Conversation

@iliaal

@iliaal iliaal commented Aug 21, 2026

Copy link
Copy Markdown
Owner

php_cgi_ini_activate_user_config() swapped the scan base when the script directory was shorter than DOCUMENT_ROOT, so a prefixing script dir never loaded .user.ini. Scan the tree only when path descends from doc_root. Same change in sapi/cgi and sapi/fpm.

php_cgi_ini_activate_user_config() swapped the scan base when path was
shorter than DOCUMENT_ROOT, so a script dir that prefixes doc_root
never parsed .user.ini. Scan the tree only when path descends from
doc_root; otherwise parse the current directory. Same change in
sapi/cgi and sapi/fpm.
@iliaal
iliaal force-pushed the fix/fpm-user-ini-prefix-scan branch from 90d57fe to 29f93f2 Compare August 22, 2026 15:04
@iliaal

iliaal commented Aug 22, 2026

Copy link
Copy Markdown
Owner Author

Upstream: php#23414

@iliaal iliaal closed this Aug 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant